<?php if ($products) { ?>
    <?php foreach ($products as $product) { ?>
    <li class="menu-item" >
        <div class="pic">
            <a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['description']; ?>"/></a>
        </div>
        <h4><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h4>
        <?php if (!$product['special']) {?>
            <div class="pri"><?php echo $product['price']; ?>元</div>
        <?php } else { ?>
            <div class="pri"><?php echo $product['price']; ?>元 -  <span class="special">特价: <?php echo $product['special']; ?></span></div>
        <?php } ?>
        <div class="order"><a href="javascript:void(0)"  data-name="<?php echo $product['name']; ?>"  data-price="<?php if(!$product['special']){echo $product['price'];}else{echo $product['special'];} ?>" data-mid="<?php echo $product['product_id']; ?>">订购/Order now</a></div>
    </li>
    <?php } ?>
<?php } ?>
